package com.quickthumb.game;

import javax.microedition.khronos.opengles.GL10;

import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.util.Log;

public class BlockTrap extends Block {

	Trap trap=new TrapCheese();
	public BlockTrap(Trap t){
		trap=t;
	}
	
	@Override
	public void update() {
		
	}
	public void setContent(Trap t)
	{
		trap=t;
	}

	@Override
	public void draw(Canvas c, Paint p) {
		
		
			p.setColor(Color.YELLOW);
			c.drawRect(0, 0, Block_width, Player.drawer_y
					* Player.DRAWER_HEIGHT * Screen.HOLE_SIZE
					+ Screen.SCREEN_YOFFSET + Screen.BOARD_YOFFSET * 2, p);
		
	}

	@Override
	public void draw(GL10 gl) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void destroy() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void openBlock(int pos) {
		trap.position=pos;
		Screen.ActiveTraps.add(trap);
		
	}
}
